package com.contro.ht;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.Configuration;


@SpringBootApplication
public class HtApplication //    继承 SpringBootServletInitializer 重写 configure 在外部tomcat中启动
        extends SpringBootServletInitializer
{

    public static void main(String[] args) {
        SpringApplication.run(HtApplication.class, args);
    }


    //返回值修改为 builder.sources(ZyyApplication.class)
//    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
////        return super.configure(builder);
        return builder.sources(HtApplication.class);
    }
}
